package 剑指offer;

/**
 * @author zhangjunfei
 * @date 2023/8/24 16:13
 */
public class O_11 {

    public int minArray(int[] numbers) {
        for (int i = numbers.length - 1; i > 0; i--) {
            if (numbers[i - 1] <= numbers[i]) {
                continue;
            }
            return numbers[i];
        }
        return numbers[0];
    }
}
